﻿using System;
using System.Collections.Generic;
using System.Text;

namespace taobao
{
    //API文档：http://open.taobao.com/dev/index.php/Taobao.picture.get

    /// <summary>
    /// 图片类
    /// </summary>
    public partial class picture : taobao.Util.BaseObject
    {
        private Picture.GetPut _putGet = new taobao.Picture.GetPut();
        /// <summary>
        /// 输入参数
        /// <para>必填参数：session</para>
        /// </summary>
        public Picture.GetPut PutGet
        {
            set { _putGet = value; }
            get { return _putGet; }
        }

        /// <summary>
        /// taobao.picture.get(获取图片信息)
        /// </summary>
        /// <returns></returns>
        public string getToXml()
        {
            Dictionary<string, string> puts = taobao.Util.Convert.ToPut(PutGet);
            puts.Add("sign", SignTopRequest(puts));
            return DoPost(puts);
        }

        public Picture.Picture get()
        {
            return new taobao.Picture.Picture();
        }
    }
}
